package com.yxy.ms.manager.common;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/***
 * <类描述> FetchRow行数
 * 
 * @author yangcheng6327
 *
 */
@Setter
@Getter
public class Limitter implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -8108526847186355766L;
    /**
     * 返回行数
     */
    private int limit = 100;
    /**
     * 起点位置
     */
    private int offset;
    
    public Limitter(int limit) {
        this.limit = limit;
    }

    public Limitter(int limit, int offset) {
        this.limit = limit;
        this.offset = offset;
    }
}
